package Dao;
import POJO.Person;
import org.apache.ibatis.annotations.One;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
public interface PersonMapper {
    @Select("select * from person where id=#{id}")
    @Results({@Result(column = "sex",property = "gender"),
            @Result (column="card",property = "card",one=@One(select = "Dao.IDCardMapper.selectById"))})
    Person selectPerson(int id);
}
